import json

import globalData

def parseChessesToJsonStr():
    clist = {}

    for k,v in globalData.chesses.items():
        clist[k] = v.paresJsonStr()

    return json.dumps(clist)